# 连接外部mySQL数据库
from 练手.db.MySQLUtil import MySQLUtil

connection = {
    'host': "192.168.0.30",
    'port': '3306',
    'user': 'root',
    'password': '',
    'db': 'expert_db'
}
with MySQLUtil(connection) as db:
    sql = 'select * from expert limit 1'
    result = db.execute(sql)

